<include file="public@head_top"/>
<include file="public@member_top"/>
</head>
<body class="bgeee">
<include file="public@head"/>

<div class="wrap clearfloat tc-main">
	<div class="row">
    
        <div class="col-lg-3 leftnav">
            <include file="public@usernav" />
        </div>
        
		<div class="col-lg-9 rightmain">

                <div class="card-header usertitle">
                    <ul class="nav nav-tabs card-header-tabs">
                      <li class="nav-item">
                        <a class="nav-link" href="/list109-cn.html?act=member"><i class="fa fa-list-ul"></i> 订单列表</a>
                      </li>
                      <li class="nav-item">
                        <a class="nav-link active" href="#one" data-toggle="tab"><i class="fa fa-edit"></i> 订单详情</a>
                      </li>
                    </ul>
                  </div>
                  
                <div class="tab-content usercontent">
                    <div class="tab-pane active" id="one">
                    
                        <div class="panelBox">
                            <div class="panelBox-body shop-order-check">
                                <div class="row order-state-1">
                                    <div class="col-sm-4 shop-order-type">
                                        <h3 class="state_txt font-size-20">
                                            <i class="fa fa-credit-card-alt orange-600" style="font-size:32px;"></i>
                                            <span>待支付</span>
                                        </h3>
                                    </div>
                                    <div class="col-sm-8 text-xs-right shop-order-type-btn">
                                        <a href="/portal/ajax/index.html?ajaxmember=ok&ajaxid={$orderinfo.id}&ajaxname=orderstatus&status=5" class="btn btn-warning btn-squared shop-order-close js-ajax-dialog-btn" data-msg="您确定要取消订单吗？" data-ok="" data-cacel="取消">取消订单</a>
                                        <a href="#" class="btn btn-danger btn-squared">立即付款</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="panelBox">
                            <div class="panelBox-body row p-b-20">
                                <div class="pearls blocks-4">
                                    <li class="pearl m-b-0 current">
                                        <div class="pearl-icon"><i class="fa fa-shopping-cart"></i></div>
                                        <span class="pearl-title">下单<p class="blue-grey-400 hidden-sm-down m-b-0 st-mt5">{:date('Y-m-d H:i:s',$orderinfo.create_time)}</p></span>
                                    </li>
                                    <li class="pearl m-b-0 disabled">
                                        <div class="pearl-icon"><i class="fa fa-list-ul"></i></div>
                                        <span class="pearl-title">付款<p class="blue-grey-400 hidden-sm-down m-b-0 st-mt5">{:date('Y-m-d H:i:s',$orderinfo.create_time)}</p></span>
                                    </li>
                                    <li class="pearl m-b-0 disabled">
                                        <div class="pearl-icon"><i class="fa fa-truck"></i></div>
                                        <span class="pearl-title">发货<p class="blue-grey-400 hidden-sm-down m-b-0 st-mt5">{:date('Y-m-d H:i:s',$orderinfo.published_time)}</p></span>
                                    </li>
                                    <li class="pearl m-b-0 disabled">
                                        <div class="pearl-icon"><i class="fa fa-sort-amount-asc"></i></div>
                                        <span class="pearl-title">完成</span>
                                    </li>
                                </div>
                            </div>
                        </div>
                        
                        <table class="table table-bordered table-hover">
                        		<thead>
                                    <tr class="st-bacce">
                                        <th colspan="2"><div class="st-posr">订单信息<i class="fa fa-angle-right st-posa st-right10" style="font-size:22px;"></i></div></th>
                                    </tr>
                                </thead>
								<tbody>
									<notempty name="configinfo['supplierok']">
									<tr>
                                        <td width="30%" class="st-texr st-xd-texl">店铺名</td>
                                        <td><a class="show-text" href="{$orderinfo.shop_url}" target="_blank">{$orderinfo.shop_name}</a></td>
                                    </tr>
									</notempty>
                                	<tr>
                                        <td width="30%" class="st-texr st-xd-texl">订单号</td>
                                        <td>{$orderinfo.post_title}</td>
                                    </tr>
									<tr>
                                        <td class="st-texr st-xd-texl">当前状态</td>
                                        <td class="xm-status-text-yellow">{$orderinfo.orderstatus}</td>
                                    </tr>
                                    <tr>
                                        <td class="st-texr st-xd-texl">支付金额</td>
                                        <td class="status-text-red st-fonb st-fon18">{$orderinfo.price}元</td>
                                    </tr>
                                    <tr>
                                        <td class="st-texr st-xd-texl">会员名称</td>
                                        <td>{$orderinfo.user_name}</td>
                                    </tr>
                                    <tr>
                                        <td class="st-texr st-xd-texl"><span class="form-required">*</span>支付方式</td>
                                        <td>{$orderinfo.payname}</td>
                                    </tr>
                                    <if condition="$orderinfo['orderstatus'] eq 0">
                                    <tr>
                                        <td class="st-texr st-xd-texl"><span class="form-required">*</span>在线支付</td>
                                        <td>{$payhtml}</td>
                                    </tr>
                                    </if>
                                    <tr>
                                        <td class="st-texr st-xd-texl"><span class="form-required">*</span>配送方式</td>
                                        <td>{$orderinfo.psname} / {$orderinfo.psfee}元</td>
                                    </tr>
                                    <if condition="$orderinfo['orderstatus'] gt 1">
                                    <tr>
                                        <td class="st-texr st-xd-texl"><span class="form-required">*</span>运单号</td>
                                        <td>{$orderinfo.invoice_no}</td>
                                    </tr>
                                    </if>
                                    <tr>
                                        <td class="st-texr st-xd-texl">订单时间</td>
                                        <td class="xm-status-text-gray"><label id="time">{:date('Y-m-d H:i:s',$orderinfo.create_time)}</label></td>
                                    </tr>
                                    <tr>
                                        <td class="st-texr st-xd-texl">付款时间</td>
                                        <td class="xm-status-text-gray"><label id="time">{:date('Y-m-d H:i:s',$orderinfo.create_time)}</label></td>
                                    </tr>
                                    <tr>
                                        <td class="st-texr st-xd-texl">发货时间</td>
                                        <td class="xm-status-text-gray"><label id="time">{:date('Y-m-d H:i:s',$orderinfo.published_time)}</label></td>
                                    </tr>
                                    <if condition="$orderinfo['postdesc']">
                                    <tr>
                                        <td class="st-texr st-xd-texl">订单备注</td>
                                        <td>{$orderinfo.postdesc}</td>
                                    </tr>
                                    </if>
                                    <tr>
                                        <td class="st-texr st-xd-texl"></td>
                                        <td><a href="/list109-cn.html?act=member" class="listaco3">返回</a></td>
                                    </tr>
								</tbody>
							</table>
                            
                            <div class="st-tableStyleBlock">
                                <div class="st-x-tablerespon st-xd-mt15">
                                <table class="table table-bordered table-hover st-tablelist3">
                                    <thead class="st-hide">
                                    <tr class="st-bacce">
                                        <th class="st-listbox1">商品名称</th>
                                        <th width="15%" class="st-listbox1">商品单价</th>
                                        <th width="15%" class="st-listbox1">赠送积分</th>
                                        <th width="8%" class="st-listbox1">数量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <foreach name="ordergoodslist" key="key" item="vo">
                                    <tr>
                                    <td class="st-listbox3">
                                      <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['listid'],'cid'=>$vo['listcatid']))}" title="{$vo.goods_name}" target="_blank">
                                        <img src="/upload/{$vo.goods_img}" style="float:left; margin-right:10px;" width="50" height="50">
                                        <p>{$vo.goods_name}</p>
                                        <p>
                                        <foreach name="vo.goods_attr_arr" key="k" item="v">
                                            <span style="color:#888;">{$k}：{$v} | </span>
                                        </foreach>
                                        </p>  
                                      </a>
                                    </td>
                                    <td>￥{$vo.price}</td>
                                    <td>{$vo.giveintegral} 积分</td>
                                    <td>{$vo.number}</td>
                                    </tr>
                                    </foreach>
                                    </tbody>
                                </table>
                                </div>
                            </div>
                            
                            <table class="table table-bordered table-hover">
                            	<thead>
                                    <tr class="st-bacce">
                                        <th colspan="2"><div class="st-posr">收货人信息<i class="fa fa-angle-right st-posa st-right10" style="font-size:22px;"></i></div></th>
                                    </tr>
                                </thead>
								<tbody>
                                    <tr>
                                        <td width="30%" class="st-texr st-xd-texl"><span class="form-required">*</span>收货人姓名</td>
                                        <td>{$orderinfo.contact_name}</td>
                                    </tr>
                                    <tr>
                                        <td class="st-texr st-xd-texl"><span class="form-required">*</span>手机号码</td>
                                        <td>{$orderinfo.contact_tel}</td>
                                    </tr>
                                    <tr>
                                        <td class="st-texr st-xd-texl"><span class="form-required">*</span>地址</td>
                                        <td>{$orderinfo.contact_address}</td>
                                    </tr>
								</tbody>
							</table>
                            
                            <table class="table table-bordered table-hover">
                            	<thead>
                                    <tr class="st-bacce">
                                        <th colspan="2"><div class="st-posr">总费用<i class="fa fa-angle-right st-posa st-right10" style="font-size:22px;"></i></div></th>
                                    </tr>
                                </thead>
								<tbody>
                                    <tr>
                                        <td width="30%" class="st-texr st-xd-texl">总费用</td>
                                        <td style="text-align:right">
                                        商品总价：<b>￥{$orderinfo[goodsprice]}</b> - 订单折扣：<b>￥{$orderinfo[discountprice]}</b> - 使用优惠券：<b>￥{$orderinfo[couponfee]}</b>
                                        <br />
                                        = 订单总金额：<label style="color:red; font-size:16px;">￥{$orderinfo[orderprice]}</label>
        								<br />
       									订单总金额：<b>￥{$orderinfo[orderprice]}</b> - 积分抵扣金额：<b>￥{$orderinfo[dkprice]}</b> + 配置费用：<b>￥{$orderinfo[psfee]}</b>
                                        <br />
                                        = 应付款金额：<label style="color:red; font-size:16px;">￥{$orderinfo[price]}</label>
                                        <if condition="$orderinfo['integralok'] eq 1">
                             			<br />           
                                        使用积分兑换：<label style="color:red; font-size:16px;">{$orderinfo[integralprice]}积分</label>
                                        </if>
                                        </td>
                                    </tr>
								</tbody>
							</table>
                        
                    </div>
                </div>
                
        </div>
        
    </div>
</div>
<!-- /container -->

<include file="public@footer"/>
<include file="public@member_scripts"/>
</body>    
</html>